import App from './App'
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor';
import uView from "uview-ui";
import store from './store';
import common from '@/common/common';
import user from '@/common/user.js';
import list from '@/common/list.js';
import h5plus from './common/h5plus.js';

import skeleton from '@/components/skeleton/index.vue';
import navBar from '@/components/navBar.vue';
import load from '@/components/load';
import ssUploadImage from '@/components/ss-upload-image/ss-upload-image';
import ykAuthpup from "@/components/yk-authpup/yk-authpup";

Vue.use(uView);
Vue.config.productionTip = false;
App.mpType = 'app';

Vue.prototype.$store = store; //引入vuex
Vue.prototype.$common = common;
Vue.prototype.$user = user;
Vue.prototype.$list = list;
Vue.prototype.$h5plus = h5plus;

Vue.component('skeleton',skeleton);
Vue.component('navBar',navBar);
Vue.component('load', load);  
Vue.component('ssUploadImage', ssUploadImage);  
Vue.component('ykAuthpup', ykAuthpup);   

const app = new Vue({
	store,
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif